import request from '@/utils/request'

// 查询商品零售详情列表
export function listProductretail(query) {
  return request({
    url: '/trace/productretail/list',
    method: 'get',
    params: query
  })
}

// 查询商品零售详情详细
export function getProductretail(id) {
  return request({
    url: '/trace/productretail/' + id,
    method: 'get'
  })
}

// 新增商品零售详情
export function addProductretail(data) {
  return request({
    url: '/trace/productretail',
    method: 'post',
    data: data
  })
}

// 修改商品零售详情
export function updateProductretail(data) {
  return request({
    url: '/trace/productretail',
    method: 'put',
    data: data
  })
}

// 删除商品零售详情
export function delProductretail(id) {
  return request({
    url: '/trace/productretail/' + id,
    method: 'delete'
  })
}
